package cn.edu.hznu.coursework.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import cn.edu.hznu.coursework.entity.Course;
import cn.edu.hznu.coursework.entity.Teacher;
import cn.edu.hznu.coursework.entity.TeacherWork;

public interface TeacherWorkRepository extends JpaRepository<TeacherWork, Integer> {
	
	public List<TeacherWork> findByTeacher(Teacher teacher);
	
	public List<TeacherWork> findByCourse(Course course);

}
